<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body">
        <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
            <div class="layui-form-item">
                <label class="layui-form-label label-required">属性</label>
                <div class="layui-input-block">
                    <select name='att' class='layui-select layui-bg-gray' lay-filter="att">
                        <!--{foreach [0=>'车队',2=>'劳务'] as $k=>$v}-->
                        <!--{eq name='k' value='$vo.att|default=0'}-->
                        <option selected value='{$k}'>{$v}</option>
                        <!--{else}-->
                        <option value='{$k}'>{$v}</option>
                        <!--{/eq}-->
                        <!--{/foreach}-->
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
            <div class="layui-form-item">
                <label class="layui-form-label label-required">主体名称</label>
                <div class="layui-input-block">
                    <input name="body_name" value='{$vo.body_name|default=""}' required placeholder="请输入主体名称" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
            <div class="layui-form-item">
                <label class="layui-form-label label-required">负责人姓名</label>
                <div class="layui-input-block">
                    <input name="name" value='{$vo.name|default=""}' required placeholder="请输入负责人姓名" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
            <div class="layui-form-item">
                <label class="layui-form-label label-required">身份证号</label>
                <div class="layui-input-block">
                    <input name="ID_number" value='{$vo.ID_number|default=""}' required placeholder="请输入身份证号" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
            <div class="layui-form-item">
                <label class="layui-form-label label-required">手机</label>
                <div class="layui-input-block">
                    
                        <input type="tel" autocomplete="off" required autofocus name="phone" value='{$vo.phone|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请正确输入手机号" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
            <div class="layui-form-item">
                <label class="layui-form-label label-required">收款信息</label>
                <div class="layui-input-block">
                    <input name="pay_info" value='{$vo.pay_info|default=""}' required placeholder="请输入收款信息" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
            <div class="layui-form-item">
                <label class="layui-form-label label-required">签署日期</label>
                <div class="layui-input-block">
                    <input data-date-input="date" name="sign_time" required value='{$vo.sign_time|default=""}'
                        placeholder="请输入签署日期" class="layui-input">
                </div>
            </div>
        </div>
       
        <div class="layui-form-item">
            <label class="layui-form-label">合同</label>
            <div class="layui-input-block">
                <label class="layui-col-xs8 think-form-group-left">
                    <input name="contract" value='{$vo.contract|default=""}' required placeholder="请上传pdf格式的合同" class="layui-input">
                </label>
                <a class="layui-col-xs4 layui-btn think-form-group-right" data-uptype="local" data-file="one" data-field="contract" data-type="pdf">
                    <i class="layui-icon layui-icon-upload"></i> 上传文件
                </a>
            </div>
            
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label">身份证照片</label>
            <div class="layui-input-block">
                <label class="layui-col-xs8 think-form-group-left">
                    <input name="ID_image" value='{$vo.ID_image|default=""}' required
                        placeholder="请上传身份证照片" class="layui-input">
                </label>
                <a class="layui-col-xs4 layui-btn think-form-group-right" data-file="one"
                    data-field="ID_image" data-type="png,jpg,gif">
                    <i class="layui-icon layui-icon-upload"></i> 上传图片
                </a>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">营业执照</label>
            <div class="layui-input-block">
                <label class="layui-col-xs8 think-form-group-left">
                    <input name="business_image" value='{$vo.business_image|default=""}'
                        placeholder="请上传营业执照" class="layui-input">
                </label>
                <a class="layui-col-xs4 layui-btn think-form-group-right" data-file="one"
                    data-field="business_image" data-type="png,jpg,gif">
                    <i class="layui-icon layui-icon-upload"></i> 上传图片
                </a>
            </div>
        </div>
        
    </div>
    
    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>

    <script>
    window.form.render();
    </script>

</form>